package com.example.diarymanger.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.diarymanger.bean.DiaryBean;
import com.example.diarymanger.bean.NoteBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NoteMapper extends BaseMapper<NoteBean> {

    @Select("select max(note_id) from notes")
    Integer selectMaxNoteId();
}
